<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    fetch('https://jsonplaceholder.typicode.com/todos', {
      method: 'post',
      body: 'title=测试&completed=true'
    })
      .then(res => res.json())
      .then(data => console.log('响应数据：', data))
  </script>
</body>
</html>